class Tables < ActiveRecord::Migration
  def change
    create_table "article_contents", force: true do |t|
      t.integer  "article_id", null: false
      t.text     "body"
      t.datetime "created_at"
      t.datetime "updated_at"
    end


    create_table "article_previews", force: true do |t|
      t.integer  "article_id", null: false
      t.text     "body"
      t.datetime "created_at"
      t.datetime "updated_at"
    end


    create_table "articles", force: true do |t|
      t.integer  "user_id",      null: false
      t.string   "title"
      t.string   "slug"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.integer  "category_id"
      t.datetime "published_at"
    end

    create_table "attachments", force: true do |t|
      t.string   "file"
      t.string   "remote_url"
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    create_table "categories", force: true do |t|
      t.string   "name",                   null: false
      t.integer  "count",      default: 0, null: false
      t.datetime "created_at"
      t.datetime "updated_at"
      t.string   "slug"
    end


    create_table "delayed_jobs", force: true do |t|
      t.integer  "priority",   default: 0, null: false
      t.integer  "attempts",   default: 0, null: false
      t.text     "handler",                null: false
      t.text     "last_error"
      t.datetime "run_at"
      t.datetime "locked_at"
      t.datetime "failed_at"
      t.string   "locked_by"
      t.string   "queue"
      t.datetime "created_at"
      t.datetime "updated_at"
    end


    create_table "users", force: true do |t|
      t.string   "email",            null: false
      t.string   "username",         null: false
      t.string   "crypted_password", null: false
      t.string   "salt",             null: false
      t.datetime "created_at"
      t.datetime "updated_at"
    end
  end
end
